//
//  GameController.h
//  Agility
//
//  Created by Dominique d'Argent on 19.04.11.
//  Copyright 2011 Nicky Nubbel. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "GameData.h"

//
// GameController
//
// This class is responsible for establishing the connection between the model,
// i.e. game data and game objects, and view components, i.e. views and layers.
// It also forwards touch events to |GameData].
//
@interface GameController : UIViewController {
    CALayer *backgroundLayer;
}

- (void)createLayerForGameObject:(NSNotification *)notification;
- (void)createLayerForSceneryObject:(NSNotification *)notification;
- (void)gameStateChangedToState:(GameState)newState;

- (void)updateScore:(CGFloat)score;

- (IBAction)start;
- (IBAction)stop;

@end
